package com.example.Blog.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public class User {
    @Id
    private int userId;
    private String userPassword;

    private String userAccount;
    private String userNickname;
    private int userFollows;
    private int userFans;
    private int userArticles;

    public User(int user_id, String user_nickname) {
        this.userId = user_id;
        this.userNickname = user_nickname;
        this.userFollows = 0;
        this.userFans = 0;
        this.userArticles = 0;
    }

    public User(){
        this.userFollows = 0;
        this.userFans = 0;
        this.userArticles = 0;
    }

    public int getUserId() {
        return userId;
    }


    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public int getUserFollows() {
        return userFollows;
    }

    public void setUserFollows(int userFollows) {
        this.userFollows = userFollows;
    }

    public int getUserFans() {
        return userFans;
    }

    public void setUserFans(int userFans) {
        this.userFans = userFans;
    }

    public int getUserArticles() {
        return userArticles;
    }

    public void setUserArticles(int userArticles) {
        this.userArticles = userArticles;
    }
}
